<?php
/**
 * +--------------------------------------------------------+
 * @Created by PhpStorm.
 * @Category ResponseException.php
 * @Depiction:
 * Author: hwy
 * Date: 2020/9/18  15:36
 * +--------------------------------------------------------+
 */

namespace App\Exceptions;

use Exception;

class ResponseException extends Exception
{
    /**
     * @Depiction 错误码、错误信息标准定义
     * @Author hwy
     * @Date  2020/9/18  15:11
     */

    const DEFALUT_CODE = 200;//
    const REQUEST_SUCCESS_MESSAGE = '请求成功！';//
    const REQUEST_ERROR_MESSAGE = '请求失败！';//
    const NOT_AUTH_MESSAGE = '无效请求！';//
    const UNKNOW_ERROR_MESSAGE = '未知错误！';//

    const SUCCESS_CODE = 0;//
    const SUCCESS_ADD_MESSAGE = '添加成功！';//
    const SUCCESS_EDIT_MESSAGE = '编辑成功！';//
    const SUCCESS_DELETE_MESSAGE = '删除成功！';//

    const ERROR_CODE = -1;//
    const ERROR_ADD_MESSAGE = '添加失败！';//
    const ERROR_EDIT_MESSAGE = '编辑失败！';//
    const ERROR_DELETE_MESSAGE = '删除失败！';//

    const DATA_EMPTY_MESSAGE = '数据不能为空！';//
    const DATA_NOT_EXIST_MESSAGE = '数据不存在！';//
    const DATA_ABNORMAL_MESSAGE = '数据异常！';//



}
